﻿using System.Threading.Tasks;
using App.MultiTenancy.Dto;
using App.BaseObject;
using Abp.Application.Services;

namespace App.MultiTenancy
{
    public interface ITenantAppService : IApplicationService
    {
				/// <summary>
        /// 批量保存
        /// </summary>
        /// <param name="bulks"></param>
        /// <returns></returns>
        Task SaveTenants(BulkDto<TenantDto> dtos);
		
		/// <summary>
        /// 异步获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Tenant> GetTenantAsync(int id);
    }
}
